package beans.grid.midas;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;

import beans.grid.common.Grid;
import beans.grid.common.GridColumn;

public class CommandClassGrid extends Grid{
	public static final String GRID_IDENTIFER = "command_class_grid";
	public static final String GRID_PAGER_ID = "command_class_grid_pager";
	public static final String GRID_SCRIPT_PATH = "/commandClass/gridScript";
	public static final String GRID_TITLE = "Command Class Grid";
	public static final String GRID_DATA_PATH = "/commandClass/gridData";
	
	public CommandClassGrid() {
		super(GRID_DATA_PATH,GRID_IDENTIFER, GRID_PAGER_ID, GRID_TITLE,GRID_SCRIPT_PATH);
	}

	@Override
	public String getGridIdentifer() {
		return GRID_IDENTIFER;
	}

	@Override
	public void constructGrid() {
		addColumns();
	}

	private void addColumns() {
		this.addColumn(new GridColumn("Class","class",40));
		this.addColumn(new GridColumn("Menu Text","menuText",60));
		this.addColumn(new GridColumn("Version","version",40));
		this.addColumn(new GridColumn("Status","status",40));
	}

}
